import fetch from '@/utils/fetch';


// 说明：添加客户过户变更记录
// 接口：api/cb/flCustomerChangeRecord
// 请求类型：Post
export function addFlCustomerChangeRecord(obj) {
    return fetch({
        url: 'api/cb/flCustomerChangeRecord',
        method: 'post',
        data: obj
    });
}

// 说明：删除客户过户变更记录
// 接口：api/cb/flCustomerChangeRecord/ids
// 请求类型：Delete
export function deleteFlCustomerChangeRecord(idArr) {
    return fetch({
        url: 'api/cb/flCustomerChangeRecord/del',
        method: 'delete',
        data: idArr
    });
}

// 说明：修改客户过户变更记录
// 接口：api/cb/flCustomerChangeRecord/{id}
// 请求类型：Put
export function modifyFlCustomerChangeRecord(id, obj) {
    return fetch({
        url: 'api/cb/flCustomerChangeRecord/' + id,
        method: 'put',
        data: obj
    })
}

// 说明：客户过户变更记录分页查询(条件搜索) 
// 接口：api/cb/flCustomerChangeRecord/search/{page}/{size}
// 请求类型：Post
export function searchFlCustomerChangeRecord(page, size, obj) {
    return fetch({
        url: 'api/cb/flCustomerChangeRecord/search/' + page + '/' + size,
        method: 'post',
        data: obj
    });
}

// 说明：获取单个客户过户变更记录
// 接口：api/cb/flCustomerChangeRecord/{id}
// 请求类型：get
export function getFlCustomerChangeRecord(id) {
    return fetch({
        url: 'api/cb/flCustomerChangeRecord/' + id,
        method: 'get'
    })
}

// 说明：客户过户变更记录导出Excel模板
// 接口：api/cb/flCustomerChangeRecord/exprotExcelModel
// 请求类型：get
export function downTem() {
    return fetch({
        url: 'api/cb/flCustomerChangeRecord/exprotExcelModel',
        responseType: 'blob',
        method: 'get'
    })
}

// 说明：客户过户变更记录导出Excel数据
// 接口：api/cb/flCustomerChangeRecord/exprotXls/{ids}
// 请求类型：post
export function exprotXls(ids, obj) {
    return fetch({
        url: 'api/cb/flCustomerChangeRecord/exprotXls/' + ids,
        responseType: 'blob',
        method: 'post',
        data: obj
    })
}

// 说明：客户过户变更记录导入
// 接口：api/cb/flCustomerChangeRecord/importXls
// 请求类型：post
export function importXls() {
    return fetch({
        url: 'api/cb/flCustomerChangeRecord/importXls',
        method: 'post'
    })
}